﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Blazing.BusinessObjects" namespace="Blazing.BusinessObjects.Contacts" >
  <class name="Contact" table="contacts" dynamic-insert="true" dynamic-update="true">

    <id name="ID" column="contactid" type="Int32">
      <generator class="native" />
    </id>
    <timestamp column="rowstamp" name="RowStamp" />

    <property name="Firstname" length="100" not-null="true" />
    <property name="Lastname" length="100" />
    <property name="Phone" length="30" />
    <property name="Email" length="50" />

    <many-to-one name="PostalAddress" class="Blazing.BusinessObjects.Locations.Address" column="addressid" />

  </class>
</hibernate-mapping>
